package com.zwh.app.bean;

import org.json.JSONException;
import org.json.JSONObject;

public class UserPaser {
	
	public String getUser(String json){
		
		try {
			JSONObject	myjson=new JSONObject(json);
			JSONObject mydata=myjson.getJSONObject("data");
			String birth_year=mydata.getString("birth_year");
			String birth_month=mydata.getString("birth_month");
			String birth_day=mydata.getString("birth_day");
			return "My birthday is "+birth_year+"."+birth_month+"."+birth_day;
		
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return "Kong!";
	}
}
